package com.example.demo;

import com.sun.org.apache.xml.internal.utils.Hashtree2Node;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

@RestController

@RequestMapping("/webapi")
public class MyCongroller {

    @RequestMapping("/myname")
    public Object myname(@RequestBody Map<String, Object> map)
    {
        HashMap<String, Object> map1 = new HashMap<>();

        map1.put("mynmae", "name11");
        return map1;
    }
}
